const app = getApp();
Page({
  data: {
    index:1,
    picker: ['事假', '病假', '年假'],
    date: '2018-12-25',
  },
  PickerChange(e) {
    console.log(e);
    this.setData({
      index: e.detail.value
    })
  },
  DateChange(e) {
    this.setData({
      date: e.detail.value
    })
  },
})